{__NOLAYOUT__}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{:lang('v_do_tips')}</title>
<link rel="stylesheet" type="text/css" href="/skin/admin/bootstrap/css/bootstrap.min.css">
</head>
<body class="alert-success pt-5 text-center">
<div class="w-100 mt-5 pt-5">
    <div style="margin:0 auto; max-width:500px;" class="alert alert-light p-3 rounded">
    	{switch $code}
            {case 1}
                <div class="w-100 mb-3"><img src="/skin/admin/img/success.png" width="50" height="50"></div>
            {/case}
            {case 0}
                <div class="w-100 mb-3"><img src="/skin/admin/img/error.png" width="50" height="50"></div>
            {/case}
        {/switch}
        <div class="w-100 h4" style="letter-spacing:.3rem;">{php}echo(strip_tags($msg));{/php}</div>
        <div class="w-100 mt-3"><a id="href" href="{$url}">{:lang('v_auto_jump')}：<span class="font-weight-bold" id="wait">{$wait}</span></a></div>
    </div>
</div>
<script type="text/javascript">
    (function(){
         var wait = document.getElementById('wait'),
         href = document.getElementById('href').href;
         var interval = setInterval(function(){
             var time = --wait.innerHTML;
             if(time <= 0) {
                 location.href = href;
                 clearInterval(interval);
             };
        }, 1000);
    })();
</script>
</body>
</html>